import request from '@/utils/request'

// 查询岗位列表
export function listSupplier(query) {
  return request({
    url: '/his/supplier/list',
    method: 'get',
    params: query
  })
}



// 查询岗位详细
export function getSupplier(supplierId) {
  return request({
    url: '/his/supplier/' + supplierId,
    method: 'get'
  })
}

// 新增
export function addSupplier(data) {
  return request({
    url: '/his/supplier',
    method: 'post',
    data: data
  })
}

// 修改
export function updateSupplier(data) {
  return request({
    url: '/his/supplier',
    method: 'put',
    data: data
  })
}

// 删除
export function delSupplier(supplierIds) {
  return request({
    url: '/his/supplier/' + supplierIds,
    method: 'delete'
  })
}
